﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ISSMoviePlex.BLL;
using ISSMoviePlex.DAL.Models;

namespace ISSMoviePlex.Admin
{
    public partial class RoomUI : System.Web.UI.Page
    {
        RoomBLL _roomLogic = new RoomBLL();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void AddButton_Click(object sender, EventArgs e)
        {
            Room room = new Room();
            room.Capacity = int.Parse(CapacityTextBox.Text);
            _roomLogic.AddRoom(room);
            RoomGridView.DataBind();
        }
    }
}